From f7e91894bbd64d47cdca348ca54f9c3601fcb0c8 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 20 Apr 2004 20:52:59 +0000 Subject: [PATCH] Correct creeping C99-ism of inline scope. --- gpsbabel/palmdoc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpsbabel/palmdoc.c b/gpsbabel/palmdoc.c index 2e88406fb..e0a1faa93 100644 --- a/gpsbabel/palmdoc.c +++ b/gpsbabel/palmdoc.c @@ -230,9 +230,10 @@ static void compress( struct buffer *b ) static void write_header( void ) { int recs = ct-1; + struct doc_record0 *rec0; --ct; - struct doc_record0 *rec0 = xcalloc( 1, sizeof(struct doc_record0)+(ct-1)*sizeof(short)); + rec0 = xcalloc( 1, sizeof(struct doc_record0)+(ct-1)*sizeof(short)); be_write16( &rec0->version, COMPRESSED ); be_write16( &rec0->reserved1, 0 ); be_write32( &rec0->doc_size, offset ); -- 2.30.2